import config from '@/config'
import request from '@/utils/request'

// 图片上传
/**
 * 接口参数类型
 */
// 上传图片的接口参数类型定义
export interface UploadImageParams {
  base64: string
}
export function uploadImage(params: Record<string, any>) {
  return request.post('/common/upload_image', params)
}

export function upload(params: Record<string, any>) {
  return request.post('/common/upload', params)
}

export function getCommonClassifyList(params: Record<string, any>) {
  return request.get('/common/classify/list', params)
}
